package day3.fight;



import lombok.Data;//get，set，tostring
import lombok.NoArgsConstructor;//无参，
import lombok.AllArgsConstructor;//有参
import java.security.PublicKey;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class card {
    private String number;
    private String name;
    private String phonenumber;
    private double money;


    //余额
    public void remain(double money)
    {
        this.money+=money;
        return;
    }
    //消费
    public void consume(double money)
    {
        this.money-=money;
        return;
    }


}
